<template>
  <div class="app-container home">
    <el-button @click="bandDeauthorization">
      授权
    </el-button>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.9"
    };
  },
  methods: {

    bandDeauthorization() {
      this.dialogVisible = false;
      const bizDataObj = {
        platformCode: "O",
        taskType: "INTERFACE_AUTH",
        agentOpParam: {
          redirectUri: "https://api.qqorw.com/prod-api/test/api/aaa",
          appTypes: ["TINYAPP", "WEBAPP", "PUBLICAPP", "MOBILEAPP"],
          isvAppId: "2021004171672248",
          state:"7e45w6q4e8qwe454asd",
        },
      };
      const bizData = encodeURIComponent(JSON.stringify(bizDataObj));
      const link = `https://b.alipay.com/page/message/tasksDetail?bizData=${bizData}`;
      console.log(link);
      // window.location.href = appAuthUrl;
      window.open(link, "_blank");
    },
  }
};
</script>

<style scoped lang="scss">

</style>

